package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.CategoryBrandRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 品牌分类关联
 * 
 * @author sunhl
 * @email sunhl@gmail.com
 * @date 2020-06-16 18:37:17
 */
@Mapper
public interface CategoryBrandRelationDao extends BaseMapper<CategoryBrandRelationEntity> {

    /**
     * 1-75-1 商品服务-API-品牌管理-品牌分类关联与级联更新
     * 分类的级联更新, 这里用的方式是mapper
     * @param catId
     * @param name
     */
    void updateCategory(@Param("catId") Long catId, @Param("name")String name);
}
